package com.mrzhou.job.enums;

/**
 * 定时器任务状态枚举类
 * @author qiang.zhou
 */
public enum SchedulerJobStatus {

    PAUSE(1, "暂停");

    SchedulerJobStatus(int code, String desc) {
        this.code = code;
        this.desc = desc;
    }

    private Integer code;

    private String desc;

    public int code() {
        return this.code;
    }

    public boolean equlas(Integer code) {
        if (null == code) {
            return false;
        }
        return this.code.equals(code);
    }

}
